var Tools=new Object({
    getFileSuffixName : function (fileName) {
        if (fileName.lastIndexOf(".") < 0) return "";
        return fileName.substr(fileName.lastIndexOf(".") + 1);
    },
    /**
     * 获取微信中选择的文件名,返回该文件的md5编码文件名
     * @param wxTempFilePath
     * @returns {string}
     */
    getMd5FileName:function (wxTempFilePath) {
        let index = wxTempFilePath.lastIndexOf(".");
        let md5FileName = wxTempFilePath.substring(index-32);
        return md5FileName;
    }
})

module.exports = Tools;
